﻿using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class VectorTagMap : ClassMap<VectorTag>
    {
        public VectorTagMap()
        {
            Not.LazyLoad();

            Id(x => x.Id);
            Map(x => x.VectorId);
            References(x => x.Tag, "tagId").Cascade.Delete();
        }
    }
}